﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserInfo.ascx.cs" Inherits="DoAn_BumTruong_DesignPattern.Controls.UserInfo" %>
<div style="display:flexbox;">
    <asp:LoginView ID="LoginView1" runat="server">

        <AnonymousTemplate>
            <div style="margin-left: 1130px;">
                <center>
                <br />
                <p>
                    <asp:HyperLink ID="HyperLinkLoginStatus" runat="server" ForeColor="White" Font-Size="18px" Text="Login" NavigateUrl="~/Login.aspx"></asp:HyperLink>
                    <asp:Label ID="Label1" runat="server" ForeColor="White" Font-Size="18px" Text="|"></asp:Label>
                    <asp:HyperLink ID="HyperLinkRegister" runat="server" ForeColor="White" Font-Size="18px" Text="Đăng ký" NavigateUrl="~/Register.aspx"></asp:HyperLink>
                </p>
            </center>
            </div>
        </AnonymousTemplate>
        <RoleGroups>
            <asp:RoleGroup Roles="Administrator">
                <ContentTemplate>
                    <div style="margin-left: 1130px;">
                        <h3></h3>
                        <p>
                            <asp:LoginName ID="LoginName1" runat="server" ForeColor="White" Font-Size="18px" FormatString="Hello: {0}" />
                            <asp:Label ID="Label2" runat="server" Text="|" ForeColor="White" Font-Size="18px"></asp:Label>
                            <asp:HyperLink ID="HyperLinkLogout" runat="server" Text="Logout" NavigateUrl="~/Login.aspx" ForeColor="White" Font-Size="18px"></asp:HyperLink>
                            <asp:HyperLink ID="HyperLinkAdmin" runat="server" Text="(Adminstrator)" NavigateUrl="~/Admin" ForeColor="White" Font-Size="18px"></asp:HyperLink>
                        </p>
                    </div>
                </ContentTemplate>
            </asp:RoleGroup>

            <asp:RoleGroup Roles="AcountCustomers">
                <ContentTemplate>
                    <div style="margin-left: 1130px;">
                        <h3></h3>
                        <p>
                            <asp:LoginName ID="LoginName1" runat="server" FormatString="Hello: {0}" ForeColor="White" Font-Size="18px" />
                            <asp:Label ID="Label3" runat="server" Text="|" ForeColor="White" Font-Size="18px"></asp:Label>
                            <asp:HyperLink ID="HyperLinkLogout" runat="server" Text="Logout" NavigateUrl="~/Login.aspx" ForeColor="White" Font-Size="18px"></asp:HyperLink>
                        </p>
                    </div>
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
</div>
